package com.mdr.imedera.controller.test;

import com.mdr.imedera.util.wx.AccessToken;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wxb
 * @Datatime 2020/10/19 19:24
 * @Descript 测试微信接口
 */
@RestController
public class WxController {

    @Autowired private AccessToken accessToken;
    /**
     * 获取access_token的值
     * @return
     */
    @GetMapping("accessToken")
    private String getAccessToken(){
        String accessToken = this.accessToken.getAccessToken();
        return accessToken;
    }


}
